<%@page import="com.framework.entity.Global"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page import="com.biz.utils.ConfigUtil" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
    String resoursUrl = ConfigUtil.get("RESOURCES_URL");
    String picUrl=ConfigUtil.get("OSSURL");
%>

<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<title>评论</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<jsp:include page="/jsp/inc.jsp"></jsp:include>

</head>
<body>
<input type="hidden" id="mebId" value="${id}">
<textarea class="commentarea" name="" id="note" cols="30" rows="10" placeholder="请输入您的评论或者感想"></textarea>
<div class="loginform">
	<div class="">
		<button type="button" class="longbtn btn-blue" onclick="doSave()" id="subButton">提交</button>
	</div>
</div>
<script>
	function doSave() {
        $('#subButton').attr('disabled',"true");
		var id=$("#mebId").val();
		var note=$("#note").val();
        var url = "${pageContext.request.contextPath}/mebactivity/doSaveComment.ac?id="+id+"&note="+note;
        $.ajax({
            type: "post",
            url: url,
            dataType: 'json',
            success: function(data) {
                $('#subButton').removeAttr("disabled");
                window.location.href='${pageContext.request.contextPath}/mebactivity/toMebactivityDetail.ac?id='+id;
            }
        });

    }
</script>
</body>
</html>
